package ycl.common.models.req.login;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 注册
 *
 * @author YCL
 * @date 2021-06-15 12:46:20
 */
@Data
@ApiModel("注册")
public class RegisterReq {

	@Schema(description = "用户名")
	@NotBlank(message = "用户名不能为空")
	private String username;

	@Schema(description = "密码")
	@NotBlank(message = "密码不能为空")
	private String password;

	@Schema(description = "手机号")
	@NotBlank(message = "手机号不能为空")
	private String mobile;

	@Schema(description = "验证码")
	@NotBlank(message = "验证码不能为空")
	private String authCode;

	@Schema(description = "邀请码")
	private String invitation;

}
